<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
     
    <title>My JSP 'user_add.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<s:head theme="xhtml" />
  </head>
  <body>
    This is my JSP page. <br>
    <s:form name="aaa" action="addUser" method="post" enctype="multipart/form-data" theme="simple">
    <table>
    <tr>
    <td>user id</td>
    <td><s:textfield name="user.user_id" label="user id"/></td>
    </tr>
    <tr>
    <td>password</td>
    <td><s:password name="user.user_password" label="password"/></td>
    </tr>
    <tr>
    <td>user name</td>
    <td><s:textfield name="user.name" label="user name"/></td>
    </tr>
    <tr>
    <td>birthday</td>
    <td><s:textfield name="user.birthday" label="birthday"/></td>
    </tr>
    <tr>
    <td>Sex</td>
    <td><s:select list="#{'0':'select','1':'man','2':'woman'}" name="sex" label="Sex"></s:select></td>
    </tr>
    <tr>
    <td>image</td>
    <td><s:file name="user.image"/></td>
    </tr>
    <tr>
    <td colspan="2">
    <table>
    <s:iterator value="new int[5]" status="stat">
    <tr>
    <td><s:textfield name="%{'jobs['+#stat.index+'].job_company'}"></s:textfield></td>
    <td><s:textfield name="%{'jobs['+#stat.index+'].job_start_date'}"></s:textfield></td>
    <td><s:textfield name="%{'jobs['+#stat.index+'].job_end_date'}"></s:textfield></td>
    </tr>
    </s:iterator>
    </table>
    </td>
    </tr>
    <tr>
    <td colspan="2"><s:submit/></td>
    </tr>
	</table>
    </s:form>
  </body>
</html>